export interface Customer {
  id: number
  name: string
  stage: string
  status: string
  source: string
  industryId: number | null
  visitAddress: string | null
  registerAddress: string
  contactName: string | null
  contactPhone: string | null
  contactEmail: string
  contactPosition: string
  website: string
  businessLicense: string
  annualRevenue: number
  employeeCount: number
  remark: string
}

export interface CustomerQuery {
  name?: string
  stage?: string
  source?: string
  status?: string
  page?: number
  size?: number
}

export interface Department {
  id: number
  name: string
  parentId: number | null
  status: string
  remark: string
  createdAt: string
  updatedAt: string
}

export interface Contact {
  id: number
  name: string
  phone: string
  email: string
  position: string
  remark: string
  customerId: number
  departmentIds: number[]
  departments?: Department[]
  createdAt: string
  updatedAt: string
}

// 客户日志相关类型
export interface CustomerLog {
  id: number
  customerId: number
  operatorId: number
  operatorName: string
  operationType: string
  operationTypeLabel: string
  operationTime: number
  operationDesc: string
  statusBefore?: string
  statusAfter?: string
  details?: string
}

export interface CustomerLogQuery {
  customerId?: number
  operatorId?: number
  page?: number
  size?: number
}
